<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="common::header('用户登录','免费小说网,无弹出广告小说网,手打小说网','国内最大的小说网站之一。提供玄幻小说,言情小说,网游小说,修真小说,都市小说,武侠小说,网络小说等在线阅读,我们是更新最快,免费最多,页面简洁且无弹出广告的小说网站!')">
</head>
<body>
<div class="main">
    <div th:replace="common::contentHeader(${name})"></div>
    <div th:replace="common::contentNav"></div>
    <br /><br />
    <form id="login-form" action="/doLogin" th:action="@{/login}" th:object="${loginForm}" method="post" role="form" style="display: block;">
     <table class="grid" width="300" align="center" style="margin: 0px auto; border-radius: 0px; border-radius:0px 0px 5px 5px; border: 1px solid #8D6661" >
       <caption class="userlogin">用户登录</caption>
        <tr align="center">
          <td class="odd">
          <div th:if="${param.error}" class="alert alert-error">帐号密码不正确，请重新登录。</div>
          <div th:if="${param.logout}" class="alert alert-success">已经退出啦，88.</div>
           <table width="250px" height="130px" class="hide" border="0" cellspacing="0" cellpadding="5">
            <tr>
              <td width="37%" align="right" valign="middle">用户名：</td>
              <td width="63%"><input type="text" class="text" size="20" maxlength="30" style="width:120px" name="loginId" id="loginId" tabindex="1" th:field="*{loginId}" placeholder="用户名" value=""  onKeyPress="javascript: if (event.keyCode==32) return false;" /></td>
            </tr>
            <tr>
              <td align="right" valign="middle">密　码：</td>
              <td><input type="password" class="text" size="20" maxlength="30" style="width:120px" name="password" id="password" th:field="*{password}" tabindex="2" placeholder="密码" /></td>
            </tr>
            <tr>
              <td align="right" valign="middle">有效期：</td>
              <td><select name="useCookie" class="select" th:field="*{useCookie}" tabindex="3" >
                  <option value="0">浏览器进程</option>
                  <option value="86400">保存一天</option>
                  <option value="2592000">保存一月</option>
                  <option value="315360000">保存一年</option>
                </select>
              </td>
            </tr>
            <tr>
              <td><input type="hidden" name="action" value="login" /></td>
              <td><input type="submit" class="button" value="&nbsp;登&nbsp;&nbsp;录&nbsp;" name="submit" /></td>
              </tr>
          </table></td>
        </tr>
        <tr align="center"> 
          <td class="foot"> <a th:href="@{/regedit}">新用户注册</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a th:href="@{getpass}">取回密码</a> 
          </td>
        </tr>
      </table>
    </form>
    <br /><br />
    <div th:replace="common::footer(${copyright},${support})" ></div>
</div>
</body>
</html>
